Skip to content

added some missing language checks and adjusted some others#6112

Merged
orbitcowboy merged 3 commits intocppcheck-opensource:mainfrom
firewave:std-checks
Mar 12, 2024
Merged

added some missing language checks and adjusted some others#6112
orbitcowboy merged 3 commits intocppcheck-opensource:mainfrom
firewave:std-checks

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Mar 10, 2024

Settings::Standards are always both set so we cannot simply check that but need to combine with an check for the actual language being used.

@firewave firewave changed the title added some missing standard checks and adjusted some others added some missing language checks and adjusted some others Mar 11, 2024
@firewave
Copy link
Copy Markdown
Collaborator Author

With this change we should finally actually perform only the language appropriate handling.

There is surely still code we could add such checks to - please try to keep that in mind if you come across such. In some cases we do check for C and C++ patterns in the same match call - those could be split up but in most cases might not have much of an impact aside from being a bit clearer.

@orbitcowboy orbitcowboy merged commit 7134e9e into cppcheck-opensource:main Mar 12, 2024
@firewave firewave deleted the std-checks branch March 12, 2024 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants